package models

type EthSetting struct {
	ID      int64  `gorm:"not null;column:ID; PRIMARY_KEY"`
	Name    string `gorm:"not null;column:Name"`    //name
	Type    int64  `gorm:"not null;column:Type"`    // 1:动态ip 2：静态  3：不配置  默认不配置
	MAC     string `gorm:"not null;column:MAC"`     //MAC
	IP      string `gorm:"not null;column:IP"`      //IP
	NetMask string `gorm:"not null;column:NetMask"` //子网掩码
	Gateway string `gorm:"not null;column:Gateway"` //网关地址
	DNS     string `gorm:"not null;column:DNS"`     //DNS
}

// 配置数据库操作的表名称
func (EthSetting) TableName() string {
	return "EthSetting"
}

type EditEthSettingRequest struct {
	EthSetting EthSetting `json:"EthSetting"`
}
